import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: 'templateManage/index'
    },
    {
      path: '/templateManage/index',
      name: '模板管理',
      component: () => import('../views/templateManage/index.vue')
    },
    {
      path: '/knowledgeBase/index',
      name: '知识库管理',
      component: () => import('../views/knowledgeBase/index.vue')
    },
    {
      path: '/scale/index',
      name: '业务问卷',
      component: () => import('../views/scale/index.vue')
    },
    {
      path: '/aitemplate/index',
      name: 'ai模板',
      component: () => import('../views/aitemplate/index.vue')
    }
  ]
})

export default router
